// 导入二次封装axios
import koi from "@/utils/axios.ts";

export const listPage = (data: any) =>  koi.get("/admin/user/user/list", data);
export const read = (id: any) =>  koi.get("/admin/user/user/read", {id});
export const update = (data: any) =>  koi.post("/admin/user/user/update", data);
export const add = (data: any) =>  koi.post("/admin/user/user/add", data);
export const changeStatus = (id: any, status: any) =>  koi.post("/admin/user/user/changeStatus", { id, status });
export const resetPwd = (id: any) =>  koi.post("/admin/user/user/resetPwd", {id});
export const integralRecord = (data: any) =>  koi.get("/admin/user/user/integralRecord", data);
export const orderRecord = (data: any) =>  koi.get("/admin/user/user/orderRecord", data);
export const balanceRecord = (data: any) =>  koi.get("/admin/user/user/balanceRecord", data);
export const exportData = (data: any) =>  koi.get("/admin/user/user/exportData", data);

